<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> / <a href="{url('module/index')}">模型管理</a></div>
<div class="m10">
<div class="table-head fn-clear">
    <div class="fn-l"><a href="{url('module/index')}" class="button"> <i class="iconfont">&#xf0ca;</i> 列表</a> <strong>模型(数据据表)管理</strong></div>
    <div class="fn-r"><a href="{url('module/add')}" class="button button-blue"> <i class="iconfont" title="增加模型">&#xf055;</i> 增加模型</a></div>
</div>
<table class="table">
<thead><tr><th class="fn-tac w80">模型特性</th><th class="w160">数据库表名</th><th class="tal">模型名称</th><th class="fn-tac w120">更新时间</th><th class="fn-tac w150">操作</th></tr></thead>
<tbody>  
{loop $list $vo}
<tr>
    <td class="fn-tac w80">{if $vo['type'] == 1}资源扩展{elseif $vo['type'] == 2}栏目扩展{else}资源模型{/if}</td>
    <td class="w160"><a class="tip" href="{url('module/field',array(id=>$vo['id']))}" tip="字段管理">{$vo['tables']}</a></td>
    <td><a class="tip" href="{url('module/field',array(id=>$vo['id']))}" tip="字段管理">{$vo['name']}</a></td>
    <td class="fn-tac w120">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac w150"><a href="{url('module/field',array(id=>$vo['id']))}">字段</a> / <a href="{url('module/edit',array(id=>$vo['id']))}">编辑</a> / <a href="###" class="del" url="{url('module/index',array(id=>$vo['id'],act=>'del'))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog','tip',function(){
    $('.del').click(function(){$(this).del();});
    $(".tip").powerFloat({offsets: {x: -10,y: 22},showDelay: 200,hoverHold: false,targetMode: "tip",targetAttr: "tip",position: "3-4"});
})
</script>